export default [
  {
    name: 'login',
    path: '/login',
    component: './common/login',
  },
  {
    path: '/',
    component: '@/layouts/BasicLayout', // 指定全局 Layout
    routes: [
      {
        path: 'dashboard/default',
        name: '个人主页',
        component: '@/pages/dashboard',
        exact: true,
      },
      {
        path: '/**/xbomMaintenance',
        name: '特改订单管理',
        routes: [
          {
            path: '/**/xbomMaintenance',
            component: '@/pages/xbommanage/SpecialOrder',
            exact: true,
          },
          {
            path: '/**/xbomMaintenance/detail/:id/:xbomId?',
            name: 'Xbom对象详情页',
            component: '@/pages/xbommanage/SpecialOrder/page/XbomObjectCreate',
          },
        ],
      },
      {
        path: '/**/researchApproval',
        name: '特改订单研发审批申请单',
        routes: [
          {
            path: '/**/researchApproval',
            component: '@/pages/xbommanage/researchApproval',
            exact: true,
          },
          {
            path: '/**/researchApproval/detail/:id',
            name: '特改订单研发审批申请单详情',
            component: '@/pages/xbommanage/researchApproval/detail',
          },
        ],
      },
      {
        path: '/**/workmanshipApproval',
        name: '特改订单工艺审批申请单',
        routes: [
          {
            path: '/**/workmanshipApproval',
            component: '@/pages/xbommanage/WorkApproval',
            exact: true,
          },
          {
            path: '/**/workmanshipApproval/detail/:id',
            name: '特改订单工艺审批申请单详情',
            component: '@/pages/xbommanage/WorkApproval/detail',
          },
        ],
      },
      {
        component: '@/pages/404',
      },
    ],
  },
];
